package fr.km.client.model;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;

import fr.km.client.KMService;
import fr.km.client.KMServiceAsync;

public class ModelManager implements IModelManager {
	/**
	 * Create a remote service proxy to talk to the server-side Greeting service.
	 */
	private final KMServiceAsync kmService = GWT
			.create(KMService.class);
	
	public void saveArticle(Article article) {
		kmService.updateArticle(article, new AsyncCallback<Article>() {
			
			@Override
			public void onSuccess(Article result) {
				
			}
			
			@Override
			public void onFailure(Throwable caught) {
				// TODO Auto-generated method stub
				
			}
		});
	}
	
}
